package com.zhilianbao.leyaogo.constants;


import com.zhilianbao.leyaogo.BuildConfig;

/**
 * Created by ben on 2016/7/13.
 */
public class HttpConfig {

    /**
     * 网络连接超时
     */
    public static final int CONN_TIME_OUT = 15000;

    /**
     * 网络读取超时
     */
    public static final int READ_TIME_OUT = 20000;

    /**
     * 网络写入超时
     */
    public static final int WRITE_TIME_OUT = 20000;


    /*************************  URL  **********************/


    /**
     * BASE URL
     */
    public static final String BASE_URL = BuildConfig.BASE_URL/*BuildConfig.LOG_ENABLE ? "http://testappapi.leyao.cn/rest/v1/" : "http://testappapi.leyao.cn/rest/v1/"*/;


    /*************************  云存储  **********************/

    /**
     * 云存储上传
     */
    public static final String URL_CLOUD_UPLOAD = BuildConfig.CLOUD_UPLOAD_URL /*? "http://yun2.luckshow.cn/pot/upload/" : *//*"http://192.168.1.227/pot/upload/"*//*"http://yun.luckshow.cn/pot/upload/"*/;


    /**
     * 云存储显示
     */
    public static final String URL_CLOUD_SHOW = BuildConfig.CLOUD_SHOW_URL /*? "http://yun2.luckshow.cn/pot/show/" : *//*"http://192.168.1.227/pot/show/"*//* "http://yun.luckshow.cn/pot/show/"*/;


    /**
     * 云存储播放下载
     */
    public static final String URL_CLOUD_DOWN = BuildConfig.CLOUD_DOWN_URL;


    /*************************  云存储  **********************/


    /*************************  返回代码  **********************/

    /**
     * 不存在的用户
     */
    public static final int MSG_CODE_412 = 412;

    /**
     * 用户已存在
     */
    public static final int MSG_CODE_413 = 413;


    /**
     * 用户异常登录
     */
    public static final int MSG_CODE_426 = 426;


    /**
     *
     */
    public static final int MSG_ERROR_CODE_10046 = 10046;

    /**
     * 访问成功的code
     */
    public static final int MSG_CODE_0 = 0;


    /*************************  返回代码  **********************/


    /*************************  用户接口  **********************/

    /**
     * 发送手机验证码短信
     */
    public static final String METHOD_SEND_CODE_SMS = "userRest/sendMobileCode";

    /**
     * 用户登录
     */
    public static final String METHOD_USER_LOGIN = "userRest/userLogin";

    /**
     * 修改登录密码
     */
    public static final String METHOD_UPDATE_LOGIN_PWD = "userRest/updateUserPwd";
    /**
     * 验证用户有效性
     */
    public static final String METHOD_VALID_USER       = "userRest/validUser";

    /**
     * 验证手机验证码
     */
    public static final String METHOD_VALID_CODE = "userRest/verifyMobileCode";

    /**
     * 重置密码
     */
    public static final String METHOD_RESET_PWD = "userRest/resetUserPwd";


    /**
     * 上传头像文件
     */
    public static final String METHOD_UPLOAD_FILES = "userRest/uploadFiles";

    /**
     * 修改绑定手机号
     */
    public static final String I_METHOD_UPDATE_USER_MOBILE = "user/updateUserMobile";
    /**
     * 获取用户信息
     */
    public static final String METHOD_GET_USER_INFO        = "userRest/getBaseUserById";

    /**
     * 修改用户信息
     */
    public static final String METHOD_UPDATE_USER_INFO = "userRest/modifyUser";

    /**
     * 用户注册
     */
    public static final String METHOD_REG_USER = "userRest/regUser";


    /**
     * 获取我的优惠券列表
     */
    public static final String METHOD_GET_MY_COUPON_LIST           = "coupons/getMyCouponsList";
    /**
     * 获取适用商品列表
     */
    public static final String METHOD_GET_CAN_USED_GOODS_LIST      = "coupons/getCouponsGoodsList";
    /**
     * 获取我的收藏列表
     */
    public static final String METHOD_GET_MY_COLLECTION_GOODS_LIST = "userEnshrine/getUserEnshrineList";

    /**
     * 设置电商收藏记录
     */
    public static final String METHOD_SET_MY_COLLECTION_GOODS = "userEnshrine/setUserEnshrine";

    /**
     * 获取我的订单列表
     */
    public static final String METHOD_GET_MY_ORDER_LIST   = "order/getOrderList";
    /**
     * 获取订单详情
     */
    public static final String METHOD_GET_ORDER_DETAIL    = "order/getOrderDetail";
    /**
     * 操作订单
     */
    public static final String METHOD_SET_ORDER           = "order/setOrder";
    public static final String METHOD_DELETE_ORDER        = "order/delOrder";
    /**
     * 获取我的实物充值卡列表
     */
    public static final String METHOD_GET_MY_CARD_VOUCHER = "rechargeCard/getMyRechargeCard";

    /**
     * 获取电商线上销售卡列表
     */
    public static final String METHOD_GET_RECHARGE_SALE_CARD_LIST = "rechargeCard/getRechargeSaleCardList";


    /**
     * 激活实物充值卡
     */
    public static final String METHOD_ACTIVATION_RECHARGE_CARD = "rechargeCard/activationRechargeCard";

    /**
     * 获取充值商品列表
     */
    public static final String METHOD_GET_RECHARGE_GOODS_LIST = "rechargeGoods/getRechargeGoodsList";

    /**
     * 充值
     */
    public static final String METHOD_RECHARGE = "rechargeGoods/recharge";

    /**
     * 获取我的页面红点数值
     */
    public static final String METHOD_GET_MY_RED_DOT_VALUE = "myInfo/getMyRedDotValue";
    /*************************  用户接口  **********************/


    /**
     * 注册推送平台
     */

    public static final String I_METHOD_REGISTER_PUSH = "robot/registerDevice";

    /**
     * 修改用户基本信息
     */
    public static final String I_METHOD_UPDATE_USER = "user/updateUser";


    /**
     * 修改用户名
     */
    public static final String I_METHOD_UPDATE_USER_ALIAS = "user/updateUserAlias";


    /**
     * 获取资金明细列表
     */
    public static final String METHOD_GET_FUND_RECORD_PAGE_LIST = "pay/getFundRecordPageList";
    /**
     * 获取最新app版本
     */
    public static final String METHOD_GET_LAST_APP_VERSION      = "app/getLastAppVersion";

    /**
     * 获取客服token
     */
    public static final String METHOD_GET_CUSTOMER_TOKEN = "customer/getRoonYunToken";

    /**
     * 获取帮助
     */
    public static final String METHOD_GET_CUSTOMER_HELP = "customer/getHelp";

    /**
     * 意见反馈
     */
    public static final String METHOD_IDEA_BACK = "customer/addUserOpinions";


    /**
     * 修改密码
     */
    public static final String I_METHOD_UPDATE_PWD = "user/updatePwd";


    /**
     * 获取用户详情
     */
    public static final String I_METHOD_GET_USER_INFO = "user/getUserInfo";


    /**
     * 获取卡券详情
     */
    public static final String METHOD_GET_CARD_DETAIL = "rechargeCard/rechargeCardDetail";


    /****************** 商品分类******************/

    /**
     * 获取商品分类列表
     */
    public static final String METHOD_GET_CLASSIFY_LIST = "classify/getClassifyList";

    /**
     * 根据商品类别获取商品列表
     */

    public static final String METHOD_GET_GOODS_LIST = "classify/getGoodsList";

    /**
     * 获取商品详情
     */
    public static final String METHOD_GET_GOODS_DETAIL = "classify/getGoodsDetail";

    /**
     * 获取商品库存
     */
    public static final String I_METHOD_GET_GOODS_STOCK = "classify/getGoodsStock";

    /**
     * 根据活动/专题 获取商品列表
     */
    public static final String METHOD_GET_ACTIVITY_GOODS_LIST = "activity/getActivityGoodsList";


    /****************** 商品分类******************/


}
